home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Classes / HashFile / getopt.h < prev    next >
C/C++ Source or Header  |  1995-06-12  |  218b  |  8 lines

  1. extern int getopt(int argc, char **argv, char *optstring);
  2.  
  3. extern char *optarg;
  4. extern int optind;
  5.  
  6. #define optopt argv[optind - 1][1]
  7. #define getarg(c, v) ((optind < c) ? ((optarg = argv[optind++]) ? 0 : EOF) : EOF)
  8.